package com.infocollect.project.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * (TappPorcessins)实体类
 *
 * @author makejava
 * @since 2019-12-25 10:32:29
 */
@ApiModel("流程实例信息")
@Data
@TableName("tapp_porcessins")
public class TappPorcessinsEntity extends Model<TappPorcessinsEntity> {

    @ApiModelProperty("主键")
    @TableId(value = "fid",type= IdType.INPUT)
    private Long fid;
    @ApiModelProperty("创建时间")
    private Date fcreationdate;
    @ApiModelProperty("创建人")
    private String fcreateby;
    @ApiModelProperty("最后修改时间")
    private Date flastupdatedate;
    @ApiModelProperty("最后修改人")
    private String flastupdateby;
    @ApiModelProperty("流程模板ID")
    private Long fprocessid;
    @ApiModelProperty("表单模板ID")
    private Long fromid;
    @ApiModelProperty("表单数据ID")
    private Long fromdataid;
    @ApiModelProperty("流程实例名称")
    private String fprocinsname;
    @ApiModelProperty("流程编码")
    private String fprocinsno;
    @ApiModelProperty("发起人名称")
    private String fstartername;
    @ApiModelProperty("发起人")
    private String fstarter;
    @ApiModelProperty("启动时间")
    private Date fstarttime;
    @ApiModelProperty("完成时间")
    private Date fcompletetime;
    @ApiModelProperty("流程状态 1 草稿 2 处理中 3 4已完成 5废弃 6撤销 7待系统处理 8审批失败 9审批异常 10流程异常")
    private Integer fstatus;
    @ApiModelProperty("历史流程ID(撤销时会生成一个新的流程 这个就是撤销流程时的ID)")
    private Long fhistoryprocessinsid;
    @ApiModelProperty("流程申请人")
    private  String fapplicantuser;
    @ApiModelProperty("流程申请人名称")
    private  String fapplicantusername;
    @ApiModelProperty("流程当前处理人")
    private  String fcurrentapproversuser;
    @ApiModelProperty("当前处理节点")
    private String fcurrentactname;
    @ApiModelProperty("")
    private String username;
    ////处理的id 用于sql查询使用
    @ApiModelProperty("节点实例ID")
    private  String actinsid;
    @TableField(exist = false)
    @ApiModelProperty("进入状态")
    private  String viewmodel;
    ///流程名称
    @ApiModelProperty("流程模板名称")
    private  String procname;
    @TableField(exist = false)
    @ApiModelProperty("进入流程表单详情时使用")
    private  String vactinsid;
}